﻿@model IEnumerable<Forum.Models.SectionsWithCategories>

@{
    ViewBag.Title = "Index";
}

@foreach (var item in Model)
{   
    <h1>@item.section.Name</h1>
    <div>
        @foreach (var cat in item.categories)
        {  
            <h5>@Html.ActionLink(cat.CategoryName,"Index","Post",new{id= @cat.CategoryId},null)------@cat.Description-------@cat.LastPostTime----@cat.PostCount</h5>
        }
    </div>
    
}
